home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 36
/
Amiga Format CD36 (1999-01-22)(Future Publishing)(GB)[!][issue 1999-02].iso
/
-seriously_amiga-
/
-commercial-
/
candyfactory
/
cfpro_demo
/
install_candyfactorypro
< prev
next >
Wrap
Text File
|
1998-12-07
|
9KB
|
480 lines
; $VER: CandyFactoryPro_Install 1.000 (02.11.98)
; Script to install CandyFactoryPro Version 1.0
(complete 0)
(user 1)
;=============================================================================
; English strings
(set default_lang 4)
(set #bad-kick "CandyFactoryPro needs Amiga-OS 3.0 or higher")
(set SelectDir1Msg
(cat "Please select a directory\nto install CandyFactoryPro in"
)
)
(set GFX1Msg "AGA")
(set GFX2Msg "Graphicboard")
(set CPU1Msg "MC68020/30 without FPU")
(set CPU2Msg "MC68030 with FPU")
(set CPU3Msg "MC68040")
(set CPU4Msg "MC68060")
(set CPU5Msg "PPC603/604")
(set CPUMsg "What CPU does the machine have that you are installing CandyFactoryPro?")
(set UpDategraf "Checking and updating graffiti.library, if needed...")
(set UpDateMSL "Checking and updating msuniversalloader.library, if needed...")
(set UpDateMSS "Checking and updating msuniversalsaver.library, if needed...")
(set InstallCandyFactoryProProg "Installing CandyFactoryPro main program...")
(set InstallLoader "Installing loader...")
(set InstallSaver "Installing saver...")
(set InstallGuide "Installing guide-File...")
(set InstallMasks "Installing masks...")
(set InstallMat "Installing materials...")
(set InstallPat "Installing pattern...")
(set InstallPro "Installing projects...")
;=============================================================================
; German strings
(if (= @language "deutsch")
(
(set default_lang 2)
(set #bad-kick "CandyFactoryPro benötigt mindestens Amiga-OS 3.0 oder höher")
(set SelectDir1Msg
(cat "Wählen Sie ein Verzeichnis, wo Sie CandyFactoryPro "
"installieren möchten. Ein Verzeichnis mit den "
"Namen CandyFactoryPro wird automatisch angelegt!"
)
)
(set GFX1Msg "AGA")
(set GFX2Msg "Grafikkarte")
(set CPU1Msg "MC68020/30 ohne FPU")
(set CPU2Msg "MC68030 mit FPU")
(set CPU3Msg "MC68040")
(set CPU4Msg "MC68060")
(set CPU5Msg "PPC603/604")
(set CPUMsg "Welchen Prozessor besitzt der Computer, auf dem Sie CandyFactoryPro installieren möchten?")
(set UpDategraf "Prüfe und Erneuere die graffiti.library, wenn nötig...")
(set UpDateMSL "Prüfe und Erneuere die msuniversalloader.library, wenn nötig...")
(set UpDateMSS "Prüfe und Erneuere die msuniversalsaver.library, wenn nötig...")
(set InstallCandyFactoryProProg "Installiere CandyFactoryPro Hauptprogramm...")
(set InstallLoader "Installiere Lademodule...")
(set InstallSaver "Installiere Speichermodule...")
(set InstallGuide "Installiere Guide-Datei...")
(set InstallMasks "Installiere Masken...")
(set InstallMat "Installiere Material...")
(set InstallPat "Installiere Pattern...")
(set InstallPro "Installiere Projekte...")
)
)
(if (> (* 39 65536) (getversion "exec.library" (resident)))
(abort #bak-kick)
)
(welcome)
(set old_level @user-level)
(user 2)
(set target (askdir
(prompt SelectDir1Msg)
(help #which-dir-help)
(default "SYS:")
))
(set CandyFactoryProDir (tackon target "CandyFactoryPro"))
(user old_level)
(set LoaderDir (tackon CandyFactoryProDir "Loader"))
(set SaverDir (tackon CandyFactoryProDir "Saver"))
(set DocDir (tackon CandyFactoryProDir "Docs"))
(set MaskDir (tackon CandyFactoryProDir "masks"))
(set MatDir (tackon CandyFactoryProDir "materials"))
(set PatDir (tackon CandyFactoryProDir "patterns"))
(set ProDir (tackon CandyFactoryProDir "projects"))
(set CPU
(askchoice
(prompt CPUMsg)
(help @askchoice-help)
(choices CPU1Msg CPU2Msg CPU3Msg CPU4Msg CPU5Msg)
(default 1)
)
)
(set GFX
(askchoice
(prompt GFXMsg)
(help @askchoice-help)
(choices GFX1Msg GFX2Msg)
(default 1)
)
)
(if ( < (exists CandyFactoryProDir (noreq) ) 2)
(makedir CandyFactoryProDir
(prompt "Creating CandyFactoryPro directory...")
(help @makedir-help)
(infos)
)
)
(complete 10)
(if ( < (exists LoaderDir (noreq) ) 2)
(makedir LoaderDir
(prompt "Creating Loader directory...")
; (help @makedir-help)
)
)
(complete 12)
(if ( < (exists SaverDir (noreq) ) 2)
(makedir SaverDir
(prompt "Creating Saver directory...")
; (help @makedir-help)
)
)
(complete 15)
(if ( < (exists MaskDir (noreq) ) 2)
(makedir MaskDir
(prompt "Creating mask directory...")
; (help @makedir-help)
)
)
(complete 16)
(if ( < (exists MatDir (noreq) ) 2)
(makedir MatDir
(prompt "Creating material directory...")
; (help @makedir-help)
)
)
(complete 17)
(if ( < (exists PatDir (noreq) ) 2)
(makedir PatDir
(prompt "Creating pattern directory...")
; (help @makedir-help)
)
)
(complete 18)
(if ( < (exists ProDir (noreq) ) 2)
(makedir ProDir
(prompt "Creating projects directory...")
; (help @makedir-help)
)
)
(complete 25)
(If (= CPU 0)
(
(copyfiles
(prompt "Installing loader...")
(help @copyfiles-help)
(source "Loader68000/")
(dest LoaderDir)
(all)
(confirm)
)
(copyfiles
(prompt "Kopiere CandyFactoryPro...")
(help @copyfiles-help)
(source "CandyPro020")
(dest "ram:")
(newname "CandyFactoryPro")
(confirm)
)
)
)
(If (= CPU 1)
(
(copyfiles
(prompt "Installing loader...")
(help @copyfiles-help)
(source "Loader68030/")
(dest LoaderDir)
(all)
(confirm)
)
(copyfiles
(prompt "Kopiere CandyFactoryPro...")
(help @copyfiles-help)
(source "CandyPro030-881")
(dest "ram:")
(newname "CandyFactoryPro")
(confirm)
)
)
)
(If (= CPU 2)
(
(copyfiles
(prompt "Installing loader...")
(help @copyfiles-help)
(source "Loader68040/")
(dest LoaderDir)
(all)
(confirm)
)
(copyfiles
(prompt "Kopiere CandyFactoryPro...")
(help @copyfiles-help)
(source "CandyPro040")
(dest "ram:")
(newname "CandyFactoryPro")
(confirm)
)
)
)
(If (= CPU 3)
(
(copyfiles
(prompt "Installing loader...")
(help @copyfiles-help)
(source "Loader68060/")
(dest LoaderDir)
(all)
(confirm)
)
(copyfiles
(prompt "Kopiere CandyFactoryPro...")
(help @copyfiles-help)
(source "CandyPro060")
(dest "ram:")
(newname "CandyFactoryPro")
(confirm)
)
)
)
(If (= CPU 4)
(
(copyfiles
(prompt "Installing loader...")
(help @copyfiles-help)
(source "Loader604/")
(dest LoaderDir)
(all)
(confirm)
)
(copyfiles
(prompt "Kopiere CandyFactoryPro...")
(help @copyfiles-help)
(source "CandyProPPC")
(dest "ram:")
(newname "CandyFactoryPro")
(confirm)
)
)
)
(complete 43)
(copyfiles
(prompt "Installing saver...")
(help @copyfiles-help)
(source "Saver/")
(dest SaverDir)
(all)
(confirm)
)
(complete 52)
(copyfiles
(prompt "Installing CandyFactoryPro main program...")
(help @copyfiles-help)
(source "ram:CandyFactoryPro")
(dest CandyFactoryProDir)
(confirm)
)
(complete 56)
(copyfiles
(prompt "Installing CandyFactoryPro Icon...")
(help @copyfiles-help)
(source "CandyFactoryPro.info")
(dest CandyFactoryProDir)
(confirm)
)
(complete 75)
(if (= default_lang 4)
(
(copyfiles
(prompt "Copying instruction...")
(help @copyfiles-help)
(source "Instruction/")
(dest DocDir)
(infos)
(all)
(confirm)
)
))
(if (= default_lang 2)
(
(copyfiles
(prompt "Kopiere Anleitung...")
(help @copyfiles-help)
(source "Anleitung/" )
(dest DocDir)
(infos)
(all)
(confirm)
)
)
)
(complete 80)
(copyfiles
(prompt "Installing projects...")
(help @copyfiles-help)
(source "projects/")
(dest ProDir)
(all)
(confirm)
)
(complete 83)
(copyfiles
(prompt "Installing patterns...")
(help @copyfiles-help)
(source "patterns/")
(dest PatDir)
(all)
(confirm)
)
(complete 86)
(copyfiles
(prompt "Installing materials...")
(help @copyfiles-help)
(source "materials/")
(dest MatDir)
(all)
(confirm)
)
(complete 89)
(copyfiles
(prompt "Installing masks...")
(help @copyfiles-help)
(source "masks/")
(dest MaskDir)
(all)
(confirm)
)
(complete 92)
(If (= GFX 0)
(
(copyfiles
(prompt "Kopiere NewWPA8...")
(help @copyfiles-help)
(source "c/NewWPA8" )
(dest "C:")
(infos)
(confirm)
)
(startup "CandyFactoryPro"
(prompt ("Adding the NewWPA8 patch to s:user-startup") )
(help @startup-help)
(command "C:NewWPA8 >NIL:" )
)
)
)
(complete 95)
(run "c/delete ram:CandyFactoryPro"
(prompt "Delete ram:CandyFactoryPro...")
(help "Keine Hilfe verfügbar.")
)
(complete 96)
(copylib
(prompt UpDategraf)
(help @copylib-help)
(source "libs/graffiti.library")
(dest "libs:")
(confirm)
)
(complete 97)
(copylib
(prompt UpDateMSL)
(help @copylib-help)
(source "libs/msuniversalloader.library")
(dest "libs:")
(confirm)
)
(complete 98)
(copylib
(prompt UpDateMSS)
(help @copylib-help)
(source "libs/msuniversalsaver.library")
(dest "libs:")
(confirm)
)
(complete 99)
(copyfiles
(prompt "copy candy.dat...")
(help @copylib-help)
(source "candy.dat")
(dest CandyFactoryProDir)
(confirm)
)
(complete 100)